Skip to content

Commit

Permalink
Add sample_difference description.
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeMartinez committed Jan 18, 2018
1 parent 0051547 commit 6d0323e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ffv1.md
Expand Up @@ -933,10 +933,10 @@ pseudo-code | type
Line( p, y ) { |
if (colorspace_type == 0) { |
for( x = 0; x < plane_pixel_width[ p ]; x++ ) |
Sample( p, y, x ) |
sample_difference[ p ][ y ][ x ] |
} else if (colorspace_type == 1) { |
for( x = 0; x < slice_pixel_width; x++ ) |
Sample( p, y, x ) |
sample_difference[ p ][ y ][ x ] |
} |
} |
```
Expand All @@ -960,6 +960,10 @@ RFC:Its value is `floor(( slice_x + slice_width ) * slice_pixel_width / num_h_sl
PDF:Its value is $\lfloor slice\_x * frame\_pixel\_width / num\_h\_slices \rfloor$.
RFC:Its value is `floor(slice_x * frame_pixel_width / num_h_slices)`.
### sample_difference
`sample_difference[ p ][ y ][ x ]` is the sample difference for sample at plane `p`, y position `y` and x position `x`. Sample value is computed based on prediction and context described in [the section on the `Samples`](#samples).
## Slice Footer
Note: slice footer is always byte aligned.
Expand Down

0 comments on commit 6d0323e

Please sign in to comment.